﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Shapes;
using HalconDisplayControl.Attributes;
using HalconDotNet;

namespace HalconDisplayControl.Shape
{
    public class CircleShape : IShape
    {
        [ParamName("column")]
        public double Column { get; set; } = 80F;
        [ParamName("row")]
        public double Row { get; set; } = 80F;
        [ParamName("radius")]
        public double Radius { get; set; } = 100F;

        public void CreateDrawingObj(out HTuple drawId)
        {
            HOperatorSet.CreateDrawingObjectCircle(Row, Column, Radius, out drawId);
        }

        public void CreateShapeObj(out HObject obj)
        {
            HOperatorSet.GenCircle(out obj, Row, Column, Radius);
        }
    }
}
